<script>
  export default {
    beforeCreate() {
      this.redirect();
    },
    render: function(h) {
      return h();
    },
    methods: {
      redirect() {
        const {params, query} = this.$route;
        const {path} = params;
        this.$router.replace({path: '/' + path, query});
      },
    },
  };
</script>
